package com.hiveway.service;

import com.hiveway.vo.OrderReportVO;
import com.hiveway.vo.SalesTop10ReportVO;
import com.hiveway.vo.TurnoverReportVO;
import com.hiveway.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {
    /**
     * 统计指定时间区间内的营业额
     *
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     *
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     *
     * @return
     */
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);

    /**
     * 查询销量排名top10
     *
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO gettop10(LocalDate begin, LocalDate end);

    /**
     * 导出 Excel 报表接口
     *
     * @param response
     */
    void exportBusinessDate(HttpServletResponse response);
}
